package chapter8;

/**
 * Created by lenovo on 2016/3/29.
 */
public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println(test(true));
    }

static int test(boolean flag){
    try{
        if(flag){
            return 1;
        }
    }finally {
        System.out.println("finally...");
    }
    return 0;
}
}
